package com.yunxun.amqp;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

//@Component
public class RPCArticleConsumer {
    @Autowired
    private RabbitTemplate rabbitTemplate;
//    @RabbitHandler
//    @RabbitListener(queues = "articleQueue")
    public void proces(String hello) {
        System.out.println("Receiver1 :" + hello);
    }
}
